package ${bao}.${entityPackage};


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
/**
 * 描述: ${table.comment}
 * author: ${author}
 * date: ${date}
 */
@Entity
@Table(name = "${entity?lower_case}")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ${entity} implements Serializable {

<#-- 循环属性名称 -->
<#list table.fields as field>
<#if field.comment??>
    /**
     * ${field.comment}
     */
</#if>
<#if field.keyIdentityFlag>
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
</#if>
    private ${field.propertyType} ${field.propertyName};

</#list>
<#-- 循环set/get方法 -->
}
